package com.xlr.excel.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.xlr.excel.dao.SourseVehicleDao;
import com.xlr.excel.entity.SourseVehicle;
import com.xlr.excel.service.SourseVehicleService;
import com.xlr.excel.vo.ExcelVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @Author: xlr
 * @Date: Created in 下午8:57 2019/2/9
 */
@Slf4j
@Service
public class SourseVehicleServiceImpl extends ServiceImpl<SourseVehicleDao,SourseVehicle> implements SourseVehicleService {


    @Override
    public List<ExcelVO> getMonthSourse(String dimension) {
        List<ExcelVO> monthSourse = baseMapper.getMonthSourse( dimension );
        return monthSourse;
    }

    /**
     * 季度
     *
     * @param dimension
     * @return
     */
    @Override
    public List <ExcelVO> getQuarterSourse(String dimension) {
        List <ExcelVO> quarterSourse = baseMapper.getQuarterSourse( dimension );
        return quarterSourse;
    }


}
